<?php
namespace App\Transformers;

use League\Fractal\TransformerAbstract;
use App\Model\HeadStore;

class HeadStoreTransformer extends TransformerAbstract{

    public function transform(HeadStore $item){
        return [
            'id' => $item->id,
            'name' => $item->name,
            'address' => $item->address,
            'account' => $item->account,
//            'password' => $item->password,
            'description' => $item->description,
            'created_at' =>$item->created_at->toDateTimeString(),
            'updated_at' =>$item->updated_at->toDateTimeString()
        ];
    }
}